This is simple C program to display “Hello, World!” on the output screen. This helps you understand the very basic syntax of a C program.
C Hello World Program
The printf() is used to inbuild library function defined in stdio.h header.
It is used to display output on the screen.
1 2 3 4 5 6 7 | #include <stdio.h> int main() { // Displays the string "Hello World!" on screen printf("Hello World!"); return 0; } |
Output
Hello World!